import React,{Component} from 'react';
import { connect } from 'react-redux';
import { action_user_changName, action_user_clearName } from '@store/action';
import { NavLink } from 'react-router-dom';

import {Button} from 'antd';

class Home extends Component {
    constructor(props) {
      super(props)
      this.state = {
        name: 'Jorn and Luce'
      }
    }
    componentWillMount() {
       console.log( this.props)
    }
    render() {
        return (
          <div>
            <h3>My name is 首页</h3>
          </div>
        );
    }
}
const mapStateToProps = state => {
    return {
        name: state.user.name,
        list: state.base.list
    }
  }

export default connect(mapStateToProps, { action_user_changName, action_user_clearName} )(Home);
